package cn.com.digitalnet.train.functional.gui;

import static org.assertj.core.api.Assertions.assertThat;

import org.junit.Test;
import org.openqa.selenium.By;

import cn.com.digitalnet.train.functional.BaseSeleniumTestCase;

public class SearchFT extends BaseSeleniumTestCase {
	
	/**
	 * 搜索.
	 */
	@Test
	public void search() {
		s.open("/search");
		s.type(By.name("keyword"), "安全");
		s.click(By.id("search_btn"));
		assertThat(s.getValue(By.name("keyword"))).isEqualTo("安全");
	}

}
